package com.xiaohu.myspace.database.entity;
// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * ShopInfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "SHOP_INFO", catalog = "myspace")
public class ShopInfo extends BaseEntity  {

	private static final long serialVersionUID = 6340239558735611252L;
	// Fields

	private Integer id;
	private String shopName;
	private String shopDescription;
	private String shopPhone;
	private String shopAddress;
	private Integer shopType;
	private String shopPicture1;
	private Double shopLatitude;
	private Double shopLongitude;
	private Integer userId;

	// Constructors

	/** default constructor */
	public ShopInfo() {
	}

	/** minimal constructor */
	public ShopInfo(String shopName, String shopDescription, Integer shopType,
			Integer userId) {
		this.shopName = shopName;
		this.shopDescription = shopDescription;
		this.shopType = shopType;
		this.userId = userId;
	}

	/** full constructor */
	public ShopInfo(String shopName, String shopDescription, String shopPhone,
			String shopAddress, Integer shopType, String shopPicture1,
			Double shopLatitude, Double shopLongitude, Integer userId) {
		this.shopName = shopName;
		this.shopDescription = shopDescription;
		this.shopPhone = shopPhone;
		this.shopAddress = shopAddress;
		this.shopType = shopType;
		this.shopPicture1 = shopPicture1;
		this.shopLatitude = shopLatitude;
		this.shopLongitude = shopLongitude;
		this.userId = userId;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "shop_name", nullable = false, length = 20)
	public String getShopName() {
		return this.shopName;
	}

	public void setShopName(String shopName) {
		this.shopName = shopName;
	}

	@Column(name = "shop_description", nullable = false, length = 40)
	public String getShopDescription() {
		return this.shopDescription;
	}

	public void setShopDescription(String shopDescription) {
		this.shopDescription = shopDescription;
	}

	@Column(name = "shop_phone", length = 12)
	public String getShopPhone() {
		return this.shopPhone;
	}

	public void setShopPhone(String shopPhone) {
		this.shopPhone = shopPhone;
	}

	@Column(name = "shop_address", length = 40)
	public String getShopAddress() {
		return this.shopAddress;
	}

	public void setShopAddress(String shopAddress) {
		this.shopAddress = shopAddress;
	}

	@Column(name = "shop_type", nullable = false)
	public Integer getShopType() {
		return this.shopType;
	}

	public void setShopType(Integer shopType) {
		this.shopType = shopType;
	}

	@Column(name = "shop_picture1", length = 100)
	public String getShopPicture1() {
		return this.shopPicture1;
	}

	public void setShopPicture1(String shopPicture1) {
		this.shopPicture1 = shopPicture1;
	}

	@Column(name = "shop_latitude", precision = 22, scale = 0)
	public Double getShopLatitude() {
		return this.shopLatitude;
	}

	public void setShopLatitude(Double shopLatitude) {
		this.shopLatitude = shopLatitude;
	}

	@Column(name = "shop_longitude", precision = 22, scale = 0)
	public Double getShopLongitude() {
		return this.shopLongitude;
	}

	public void setShopLongitude(Double shopLongitude) {
		this.shopLongitude = shopLongitude;
	}

	@Column(name = "user_id", nullable = false)
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

}